# coding=utf-8

from django.contrib import admin

from .models import HiveonAlgo
from .models import HiveonCoin
from .models import HiveonMiner

from .models import HiveonGPUBrand
from .models import HiveonGModel


@admin.register(HiveonAlgo)
class HiveonAlgoAdmin(admin.ModelAdmin):
    list_display = ("id", "name", "amount", "cur_date", "create_time", "update_time")

    list_filter = ("name", "cur_date")


@admin.register(HiveonCoin)
class HiveonCoinAdmin(admin.ModelAdmin):
    list_display = ("id", "name", "amount", "cur_date", "create_time", "update_time")

    list_filter = ("name", "cur_date")


@admin.register(HiveonMiner)
class HiveonMinerAdmin(admin.ModelAdmin):
    list_display = ("id", "name", "amount", "cur_date", "create_time", "update_time")

    list_filter = ("name", "cur_date")


@admin.register(HiveonGPUBrand)
class HiveonGPUBrandAdmin(admin.ModelAdmin):
    list_display = ("id", "name", "amount", "cur_date", "create_time", "update_time")

    list_filter = ("name", "cur_date")


@admin.register(HiveonGModel)
class HiveonGModelAdmin(admin.ModelAdmin):
    list_display = ("id", "name", "amount", "cur_date", "gtype", "create_time", "update_time")

    list_filter = ("name", "cur_date", "gtype")
